package info.motteke.mybws.test;

public class ExtendedHobby extends Hobby {

    private int cost;

    /**
     * costを取得します。
     * 
     * @return cost
     */
    public int getCost() {
        return cost;
    }

    /**
     * costを設定します。
     * 
     * @param cost
     *            cost
     */
    public void setCost(int cost) {
        this.cost = cost;
    }

    /*
     * (非 Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ExtendedHobby [cost=");
        builder.append(cost);
        builder.append(", getId()=");
        builder.append(getId());
        builder.append(", getName()=");
        builder.append(getName());
        builder.append("]");
        return builder.toString();
    }
}
